<template>
  <transition name="slide">
    <slot></slot>
  </transition>
</template>

<script>
export default {
  name: 'slide'
}
</script>

<style lang="stylus" scoped>
  .slide-enter, .slide-leave-to {
    opacity: 0
    transform: translate3d(100%, 0, 0)
  }
  .slide-enter-active, .slide-leave-active {
    transition: all .3s
  }
</style>
